<template>
  <div class="empty">
    <img src="./missing_img_wu.png" alt="" />
    <p>{{ text }}</p>
  </div>
</template>

<script setup>
import { ref } from 'vue';

const text = ref('暂无内容~');
const setText = (val) => {
  text.value = val;
};
defineExpose({ setText });
</script>

<style lang="less" scoped>
.empty {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  img {
    width: 120px;
  }
  p {
    font-size: 16px;
    font-weight: 400;
    color: #000000;
  }
}
</style>
